import { createApp } from 'vue'
import Element from 'element-plus'
import 'element-plus/dist/index.css';
import App from './scoket.vue'
import '../assets/icon.js'
import '../assets/css/index.css'
import '../components/userWorker'

const app = createApp(App)
app.use(Element, { size: 'small' }).mount('#app') as any

const win: any = window // 
if (process.env.NODE_ENV === 'development') {
    if ('__VUE_DEVTOOLS_GLOBAL_HOOK__' in win) {
        // 这里__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue赋值一个createApp实例
        win.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = app
    }
}
